﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    class Program
    {
        static void Main(string[] args)
        {
            Lei lei = new Lei();
            Console.WriteLine("请输入姓名：");
            lei.name = Convert.ToString(Console.ReadLine());
            Console.WriteLine("请输入年龄：");
            lei.age  = int .Parse (Console.ReadLine());
            Console.WriteLine("请输入所学专业：");
            lei.major  = Convert.ToString(Console.ReadLine());
            lei.personal();
        }
    }
}
